home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
news
/
inn1.000
/
inn1.4sec-linux-src.tar
/
inn
/
samples
/
senduuname
< prev
next >
Wrap
Text File
|
1993-12-22
|
863b
|
32 lines
#! /bin/sh
## $Revision: 1.4 $
## Senduuname control-message handler
PROG=senduuname
## Some shells don't pass in $* unless we explicitly pass it in here.
## =()<. @<_PATH_PARSECTL>@ "$@">()=
. /news/bin/control/parsecontrol "$@"
SUBJECT="Senduuname reply from `innconfval pathhost`"
case ${ACTION} in
mail)
export FROM MAILCMD SUBJECT ARTICLE
(
echo "${FROM} posted a senduuname."
echo 'To reply, do the following:'
echo " uuname | ${MAILCMD} -s \"${SUBJECT}\" ${FROM}"
echo 'The full article was:'
cat ${ARTICLE}
) | sed -e 's/^~/~~/' | ${MAILCMD} -s "senduuname by ${FROM}" ${NEWSMASTER}
;;
logit)
${WRITELOG} ${LOGFILE} "senduuname by ${FROM}; reply skipped" <${ARTICLE}
;;
doit)
uuname | ${MAILCMD} -s "${SUBJECT}" ${REPLYTO}
${WRITELOG} ${LOGFILE} "senduuname by ${FROM}; reply sent" <${ARTICLE}
;;
esac
exit